]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Drop dead code
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 26 Jan 2024 19:25:02 +0000 (20:25 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 29 Feb 2024 15:34:21 +0000 (16:34 +0100)
This getGroups() method was not called anywhere for
a long time, the last user was dropped at commit
8fdf47ea5b ("keyboard: Do not create widgetry for
all keyboard groups at once").

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>

js/ui/keyboard.js

index c7f244b02413f224ae3d9b1c134bfd26d04c05e6..16adf91d3a2ef4d0abcc8ef120df18db2b88f5de 100644 (file)
@@ -2110,18 +2110,6 @@ class KeyboardController extends Signals.EventEmitter {
         this.emit('purpose-changed', purpose);
     }
 
-    getGroups() {
-        let inputSources = this._inputSourceManager.inputSources;
-        let groups = [];
-
-        for (let i in inputSources) {
-            let is = inputSources[i];
-            groups[is.index] = is.xkbId;
-        }
-
-        return groups;
-    }
-
     getCurrentGroup() {
         // Special case for Korean, if Hangul mode is disabled, use the 'us' keymap
         if (this._currentSource.id === 'hangul') {